{"ast":null,"code":"import _defineProperty from \"/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/@babel/runtime/helpers/esm/defineProperty.js\";\nvar genMotionStyle = function genMotionStyle(token) {\n  var _componentCls;\n  var componentCls = token.componentCls,\n    motionDurationSlow = token.motionDurationSlow;\n  var sharedPanelMotion = {\n    '&-enter, &-appear, &-leave': {\n      '&-start': {\n        transition: 'none'\n      },\n      '&-active': {\n        transition: \"all \".concat(motionDurationSlow)\n      }\n    }\n  };\n  return _defineProperty({}, componentCls, (_componentCls = {}, _defineProperty(_componentCls, \"\".concat(componentCls, \"-mask-motion\"), {\n    '&-enter, &-appear, &-leave': {\n      '&-active': {\n        transition: \"all \".concat(motionDurationSlow)\n      }\n    },\n    '&-enter, &-appear': {\n      opacity: 0,\n      '&-active': {\n        opacity: 1\n      }\n    },\n    '&-leave': {\n      opacity: 1,\n      '&-active': {\n        opacity: 0\n      }\n    }\n  }), _defineProperty(_componentCls, \"\".concat(componentCls, \"-panel-motion\"), {\n    // Left\n    '&-left': [sharedPanelMotion, {\n      '&-enter, &-appear': {\n        '&-start': {\n          transform: 'translateX(-100%) !important'\n        },\n        '&-active': {\n          transform: 'translateX(0)'\n        }\n      },\n      '&-leave': {\n        transform: 'translateX(0)',\n        '&-active': {\n          transform: 'translateX(-100%)'\n        }\n      }\n    }],\n    // Right\n    '&-right': [sharedPanelMotion, {\n      '&-enter, &-appear': {\n        '&-start': {\n          transform: 'translateX(100%) !important'\n        },\n        '&-active': {\n          transform: 'translateX(0)'\n        }\n      },\n      '&-leave': {\n        transform: 'translateX(0)',\n        '&-active': {\n          transform: 'translateX(100%)'\n        }\n      }\n    }],\n    // Top\n    '&-top': [sharedPanelMotion, {\n      '&-enter, &-appear': {\n        '&-start': {\n          transform: 'translateY(-100%) !important'\n        },\n        '&-active': {\n          transform: 'translateY(0)'\n        }\n      },\n      '&-leave': {\n        transform: 'translateY(0)',\n        '&-active': {\n          transform: 'translateY(-100%)'\n        }\n      }\n    }],\n    // Bottom\n    '&-bottom': [sharedPanelMotion, {\n      '&-enter, &-appear': {\n        '&-start': {\n          transform: 'translateY(100%) !important'\n        },\n        '&-active': {\n          transform: 'translateY(0)'\n        }\n      },\n      '&-leave': {\n        transform: 'translateY(0)',\n        '&-active': {\n          transform: 'translateY(100%)'\n        }\n      }\n    }]\n  }), _componentCls));\n};\nexport default genMotionStyle;","map":{"version":3,"names":["genMotionStyle","token","componentCls","motionDurationSlow","sharedPanelMotion","transition","opacity","transform"],"sources":["/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/antd/es/drawer/style/motion.js"],"sourcesContent":["const genMotionStyle = token => {\n  const {\n    componentCls,\n    motionDurationSlow\n  } = token;\n  const sharedPanelMotion = {\n    '&-enter, &-appear, &-leave': {\n      '&-start': {\n        transition: 'none'\n      },\n      '&-active': {\n        transition: `all ${motionDurationSlow}`\n      }\n    }\n  };\n  return {\n    [componentCls]: {\n      // ======================== Mask ========================\n      [`${componentCls}-mask-motion`]: {\n        '&-enter, &-appear, &-leave': {\n          '&-active': {\n            transition: `all ${motionDurationSlow}`\n          }\n        },\n        '&-enter, &-appear': {\n          opacity: 0,\n          '&-active': {\n            opacity: 1\n          }\n        },\n        '&-leave': {\n          opacity: 1,\n          '&-active': {\n            opacity: 0\n          }\n        }\n      },\n      // ======================= Panel ========================\n      [`${componentCls}-panel-motion`]: {\n        // Left\n        '&-left': [sharedPanelMotion, {\n          '&-enter, &-appear': {\n            '&-start': {\n              transform: 'translateX(-100%) !important'\n            },\n            '&-active': {\n              transform: 'translateX(0)'\n            }\n          },\n          '&-leave': {\n            transform: 'translateX(0)',\n            '&-active': {\n              transform: 'translateX(-100%)'\n            }\n          }\n        }],\n        // Right\n        '&-right': [sharedPanelMotion, {\n          '&-enter, &-appear': {\n            '&-start': {\n              transform: 'translateX(100%) !important'\n            },\n            '&-active': {\n              transform: 'translateX(0)'\n            }\n          },\n          '&-leave': {\n            transform: 'translateX(0)',\n            '&-active': {\n              transform: 'translateX(100%)'\n            }\n          }\n        }],\n        // Top\n        '&-top': [sharedPanelMotion, {\n          '&-enter, &-appear': {\n            '&-start': {\n              transform: 'translateY(-100%) !important'\n            },\n            '&-active': {\n              transform: 'translateY(0)'\n            }\n          },\n          '&-leave': {\n            transform: 'translateY(0)',\n            '&-active': {\n              transform: 'translateY(-100%)'\n            }\n          }\n        }],\n        // Bottom\n        '&-bottom': [sharedPanelMotion, {\n          '&-enter, &-appear': {\n            '&-start': {\n              transform: 'translateY(100%) !important'\n            },\n            '&-active': {\n              transform: 'translateY(0)'\n            }\n          },\n          '&-leave': {\n            transform: 'translateY(0)',\n            '&-active': {\n              transform: 'translateY(100%)'\n            }\n          }\n        }]\n      }\n    }\n  };\n};\nexport default genMotionStyle;"],"mappings":";AAAA,IAAMA,cAAc,GAAG,SAAjBA,cAAc,CAAGC,KAAK,EAAI;EAAA;EAC9B,IACEC,YAAY,GAEVD,KAAK,CAFPC,YAAY;IACZC,kBAAkB,GAChBF,KAAK,CADPE,kBAAkB;EAEpB,IAAMC,iBAAiB,GAAG;IACxB,4BAA4B,EAAE;MAC5B,SAAS,EAAE;QACTC,UAAU,EAAE;MACd,CAAC;MACD,UAAU,EAAE;QACVA,UAAU,gBAASF,kBAAkB;MACvC;IACF;EACF,CAAC;EACD,2BACGD,YAAY,gEAEPA,YAAY,mBAAiB;IAC/B,4BAA4B,EAAE;MAC5B,UAAU,EAAE;QACVG,UAAU,gBAASF,kBAAkB;MACvC;IACF,CAAC;IACD,mBAAmB,EAAE;MACnBG,OAAO,EAAE,CAAC;MACV,UAAU,EAAE;QACVA,OAAO,EAAE;MACX;IACF,CAAC;IACD,SAAS,EAAE;MACTA,OAAO,EAAE,CAAC;MACV,UAAU,EAAE;QACVA,OAAO,EAAE;MACX;IACF;EACF,CAAC,4CAEGJ,YAAY,oBAAkB;IAChC;IACA,QAAQ,EAAE,CAACE,iBAAiB,EAAE;MAC5B,mBAAmB,EAAE;QACnB,SAAS,EAAE;UACTG,SAAS,EAAE;QACb,CA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